I=-Iinclude -I/usr/local/cern/root/include
L=$(shell root-config --libs)
F=-std=c++0x
C=g++

all: main DataReader Coefficient
	$C $F $I $L -o bin/photonstats build/*.o

clean:
	rm build/*.o

main:
	$C $F $I $L -c -o build/main.o src/main.cpp

DataReader:
	$C $F $I $L -c -o build/DataReader.o src/DataReader.cpp

Coefficient:
	$C $F $I $L -c -o build/Coefficient.o src/Coefficient.cpp
